#define WNDCLASSNAME_WINDOWED	"MPlayer - The Movie Player"
#define WNDCLASSNAME_FULLSCREEN	"MPlayer - Fullscreen"
#define WNDSTYLE WS_OVERLAPPEDWINDOW|WS_SIZEBOX

#ifndef WM_XBUTTONDOWN
#define WM_XBUTTONDOWN    0x020B
#define WM_XBUTTONUP      0x020C
#define WM_XBUTTONDBLCLK  0x020D
#endif

#define USE_REGION 0

#define VOLUMEBAR_W 60
#define VOLUMEBAR_H 20

#define WM_NOTIFYICON     (WM_USER+1973)
#define WM_SHOWCURSOR     (WM_USER+1974)
#define WM_SHOWCONTROLBAR (WM_USER+1975)


#define TIMER_SWITCH_VIEW 100
#define TIMER_HIDE_CURSOR 101


#define MOVING_NONE		0
#define MOVING_SUB		1
#define MOVING_WINDOW	2

extern HWND hWndGUI;
extern HWND hWndGUIFS;
extern HWND hWndP;
extern HWND hWndControlbar;
extern HWND hWndSeekbar;
extern HWND hWndVolumebar;
extern HMENU hMenu, hSubtitleMenu, hPopupMenu;
extern RECT                 rd;                     //rect of our stretched image
extern RECT                 rs;                     //rect of our source image
extern HICON                mplayericon;     // Handle to mplayer icon
extern HCURSOR              mplayercursor;   // Handle to mplayer cursor
extern RECT                 monitor_rect;
extern float window_aspect;
extern int menuHeight;
extern int bIdle;
extern int FullHide;
extern int bHide;
extern int disp_height,disp_top;
extern long WM_TASKBARCREATED;
extern uint32_t d_image_width, d_image_height;
extern MENUITEMINFO mi;
extern HBRUSH               blackbrush;      // Handle to black brush
extern HBRUSH               colorbrush;      // Handle to colorkey brush
extern HBRUSH               bkgndbrush;
extern BOOL bFullView;
extern BOOL bRBDown;
extern BOOL bWheel;
extern int adapter_count;
extern HBITMAP hLogo;
extern int logoW, logoH;
extern int SeekbarWidth;
extern int ControlbarShow;
extern int xborder,yborder;
extern int WndState;
extern int old_x, old_y, bMoving;
extern int paused;
extern int delta_x,delta_y;
extern float factors[3];
extern int factor_index;
extern float factor_x,factor_y;
extern DWORD start_lbutton_down;
extern NOTIFYICONDATA nid;
extern COLORREF windowcolor;        
extern char AlternativeFont[MAX_PATH];
extern int disable_manage; 

#if !USE_REGION
extern int xborder0,yborder0;
extern int xborder1,yborder1;
#endif

extern HANDLE hAccelTable;
extern int systray;
extern int switch_view;
extern int auto_hide;
extern int fixedsize;
extern int bSeeking;
extern int save_vo_fs;

typedef struct {
  void *queue_head;
  void *queue_tail;
  unsigned int global_palette[16];
  unsigned int orig_frame_width, orig_frame_height;
  unsigned int scale_x, scale_y;
} spudec_tmp_t;